package com.gitee.neuray.security.mail.mapper;

import com.gitee.neuray.security.mail.vo.SysMailSourceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface MailReminderMapper extends Mapper<SysMailSourceVo> {

    /**
     * 查询需要提醒的一级审批人
     * */
    List<String> queryFirstApproverMail();

    /**
     * 新增邮件信息
     * */
    void addSysMailSourceVo(@Param("params")SysMailSourceVo sysMailSourceVo);

    /**
     * 查询需要提醒的二级审批人
     * */
    List<String> querySecondApproverMail();

    /**
     * 根据角色查询审批人邮箱
     * */
    List<String> queryApproverMail(@Param("roleId")String roleId);
}
